package com.intelligencesoft.pss.vo;

import java.io.Serializable;

import com.intelligencesoft.pss.org.json.JSONException;
import com.intelligencesoft.pss.org.json.JSONObject;


public class TencentUserInfoVo implements Serializable{
	
	private static final long serialVersionUID = -4478558237093928286L;
	
	private int birthDay;
	private int birthMonth;
	private int birthYear;
	private int cityCode;
	private String comp;
	private String countryCode;
	private String email;
	private int exp;
	private int fansNum;
	private int favNum;
	private String head;
	private String homeCityCode;
	private String homeCountryCode;
	private String homePage;
	private String homeProvinceCode;
	private String homeTownCode;
	private String httpsHead;
	private int idolNum;
	private int industryCode;
	private String introduction;
	private int isent;
	private int isMyBlack;
	private int isMyFans;
	private int isMyIdol;
	private int isRealName;
	private int isVip;
	private int level;
	private String location;
	private int mutualFansNum;
	private String name;
	private String nick;
	private String openId;
	private String provinceCode;
	private long regtime;
	private int sendPrivateFlag;
	private int sex;
	private String tag;
	private int tweetNum;
	private String verifyInfo;
	public TencentUserInfoVo(JSONObject json){
		init(json);
	}
	
	private void init(JSONObject json){
		if (json != null) {
			try {
				birthDay = json.getInt("birth_day");
				birthMonth = json.getInt("birth_month");
				birthYear = json.getInt("birth_year");
				cityCode = json.getInt("city_code");
				comp = json.getString("comp");
				countryCode = json.getString("country_code");
				email = json.getString("email");
				exp = json.getInt("exp");
				fansNum = json.getInt("fansnum");
				favNum = json.getInt("favnum");
				head = json.getString("head");
				homeCityCode = json.getString("homecity_code");
				homeCountryCode = json.getString("homecountry_code");
				homePage = json.getString("homepage");
				homeProvinceCode = json.getString("homeprovince_code");
				homeTownCode = json.getString("hometown_code");
				httpsHead = json.getString("https_head");
				idolNum = json.getInt("idolnum");
				industryCode = json.getInt("industry_code");
				introduction = json.getString("introduction");
				isent = json.getInt("isent");
				isMyBlack = json.getInt("ismyblack");
				isMyFans = json.getInt("ismyfans");
				isMyIdol = json.getInt("ismyidol");
				isRealName = json.getInt("isrealname");
				isVip = json.getInt("isvip");
				level = json.getInt("level");
				location = json.getString("location");
				mutualFansNum = json.getInt("mutual_fans_num");
				name = json.getString("name");
				nick = json.getString("nick");
				openId = json.getString("openid");
				provinceCode = json.getString("province_code");
				regtime = json.getLong("regtime");
				sendPrivateFlag = json.getInt("send_private_flag");
				sex = json.getInt("sex");
				tag = json.getString("tag");
				tweetNum = json.getInt("tweetnum");
				verifyInfo = json.getString("verifyinfo");
			} catch (JSONException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
	
	public int getBirthDay() {
		return birthDay;
	}
	public void setBirthDay(int birthDay) {
		this.birthDay = birthDay;
	}
	public int getBirthMonth() {
		return birthMonth;
	}
	public void setBirthMonth(int birthMonth) {
		this.birthMonth = birthMonth;
	}
	public int getBirthYear() {
		return birthYear;
	}
	public void setBirthYear(int birthYear) {
		this.birthYear = birthYear;
	}
	public int getCityCode() {
		return cityCode;
	}
	public void setCityCode(int cityCode) {
		this.cityCode = cityCode;
	}
	public String getComp() {
		return comp;
	}
	public void setComp(String comp) {
		this.comp = comp;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}
	public int getFansNum() {
		return fansNum;
	}
	public void setFansNum(int fansNum) {
		this.fansNum = fansNum;
	}
	public int getFavNum() {
		return favNum;
	}
	public void setFavNum(int favNum) {
		this.favNum = favNum;
	}
	public String getHead() {
		return head;
	}
	public void setHead(String head) {
		this.head = head;
	}
	public String getHomeCityCode() {
		return homeCityCode;
	}
	public void setHomeCityCode(String homeCityCode) {
		this.homeCityCode = homeCityCode;
	}
	public String getHomeCountryCode() {
		return homeCountryCode;
	}
	public void setHomeCountryCode(String homeCountryCode) {
		this.homeCountryCode = homeCountryCode;
	}
	public String getHomePage() {
		return homePage;
	}
	public void setHomePage(String homePage) {
		this.homePage = homePage;
	}
	public String getHomeProvinceCode() {
		return homeProvinceCode;
	}
	public void setHomeProvinceCode(String homeProvinceCode) {
		this.homeProvinceCode = homeProvinceCode;
	}
	
	public String getHomeTownCode() {
		return homeTownCode;
	}

	public void setHomeTownCode(String homeTownCode) {
		this.homeTownCode = homeTownCode;
	}

	public String getHttpsHead() {
		return httpsHead;
	}
	public void setHttpsHead(String httpsHead) {
		this.httpsHead = httpsHead;
	}
	public int getIdolNum() {
		return idolNum;
	}
	public void setIdolNum(int idolNum) {
		this.idolNum = idolNum;
	}
	public int getIndustryCode() {
		return industryCode;
	}
	public void setIndustryCode(int industryCode) {
		this.industryCode = industryCode;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public int getIsent() {
		return isent;
	}
	public void setIsent(int isent) {
		this.isent = isent;
	}
	public int getIsMyBlack() {
		return isMyBlack;
	}
	public void setIsMyBlack(int isMyBlack) {
		this.isMyBlack = isMyBlack;
	}
	public int getIsMyFans() {
		return isMyFans;
	}
	public void setIsMyFans(int isMyFans) {
		this.isMyFans = isMyFans;
	}
	public int getIsMyIdol() {
		return isMyIdol;
	}
	public void setIsMyIdol(int isMyIdol) {
		this.isMyIdol = isMyIdol;
	}
	public int getIsRealName() {
		return isRealName;
	}
	public void setIsRealName(int isRealName) {
		this.isRealName = isRealName;
	}
	public int getIsVip() {
		return isVip;
	}
	public void setIsVip(int isVip) {
		this.isVip = isVip;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public int getMutualFansNum() {
		return mutualFansNum;
	}
	public void setMutualFansNum(int mutualFansNum) {
		this.mutualFansNum = mutualFansNum;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNick() {
		return nick;
	}
	public void setNick(String nick) {
		this.nick = nick;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getProvinceCode() {
		return provinceCode;
	}
	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}
	public long getRegtime() {
		return regtime;
	}
	public void setRegtime(long regtime) {
		this.regtime = regtime;
	}
	public int getSendPrivateFlag() {
		return sendPrivateFlag;
	}
	public void setSendPrivateFlag(int sendPrivateFlag) {
		this.sendPrivateFlag = sendPrivateFlag;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public int getTweetNum() {
		return tweetNum;
	}
	public void setTweetNum(int tweetNum) {
		this.tweetNum = tweetNum;
	}
	public String getVerifyInfo() {
		return verifyInfo;
	}
	public void setVerifyInfo(String verifyInfo) {
		this.verifyInfo = verifyInfo;
	}
	
}
